<?php


namespace app\services\notice;


use app\dao\notice\NoticeFeedbackDao;
use app\exceptions\AuthException;
use app\services\BaseService;

class NoticeFeedbackService extends BaseService
{
    public function __construct(NoticeFeedbackDao  $dao)
    {
        $this ->dao = $dao;
    }

    //---------------------------------api----------------------------------------------------------------------
    /*
     * 保存问题反馈
     */
    public function insertFeedbsck(array $where){
        $data = $this->dao->insertFeedback($where);
        if ($data){
            return '成功';
        }else{
            throw new AuthException('保存失败');
        }
    }
}